package com.coder.rental.mapper;

import com.coder.rental.entity.Permission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 权限_权限资源管理 Mapper 接口
 * </p>
 *
 * @author zhaojj
 * @since 2025-01-10
 */
public interface PermissionMapper extends BaseMapper<Permission> {
    List<Permission> selectPermissionListByUserId(Integer userId); // 这里是拓展了BaseMapper。所以在service层调用使用baseMapper即可
    List<Permission> selectPermissionListByRoleId(Integer roleId);
}
